<template>
    <div>
      {{id}}
    </div>
</template>

<script>
    export default {
      data:function () {
        return {
          id:0
        }
      },
      created(){
        //获取url传入的id参数值赋值给data中的id属性
        this.id=this.$route.params.id;
      }
    }
</script>

<style scoped>

</style>
